<extend name="public@base5"/>
<block name="main">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="nav-item">
                <a class="nav-link" href="{:url('Theme/index')}">{:lang('ADMIN_THEME_INDEX')}</a>
            </li>
            <li class="nav-item">
                <a class="nav-link active" href="{:url('Theme/install')}">{:lang('ADMIN_THEME_INSTALL')}</a>
            </li>
        </ul>
        <form method="post" class="js-ajax-form margin-top-20">
            <php> $status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
            <table class="table table-hover table-bordered table-list">
                <thead>
                <tr>
                    <th>{:lang('Key')}</th>
                    <th>{:lang('Name')}</th>
                    <th>{:lang('Version')}</th>
                    <th>{:lang('Author')}</th>
                    <th>{:lang('Description')}</th>
                    <th width="60">{:lang('ACTIONS')}</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="themes" item="vo">
                    <tr>
                        <td>{$vo.theme}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.version}</td>
                        <td>{$vo.author}</td>
                        <td>{$vo.description}</td>
                        <td>
                            <a href="javascript:"
                               data-href="admin/themes/{$vo.theme}"
                               class="btn btn-xs btn-primary js-ajax-dialog-btn js-ajax-dialog-btn"
                               title="{:lang('Install')}" data-toggle="tooltip">
                                <i class="fa fa-plus-circle fa-fw"></i>
                            </a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
                <tfoot>
                <tr>
                    <th>{:lang('Key')}</th>
                    <th>{:lang('Name')}</th>
                    <th>{:lang('Version')}</th>
                    <th>{:lang('Author')}</th>
                    <th>{:lang('Description')}</th>
                    <th>{:lang('ACTIONS')}</th>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>
</block>